import React, {Component} from 'react'

export default class Home extends Component {
	render(){
		return (
			<div>
				<button onClick={this.handleClick.bind(this, '2')}>点击</button>
			</div>
		)
	}
	
	handleClick(val, e){
		
//		console.log(e);
		
//		this.props.history.push('/detail/' + val)
		
		this.props.history.push({
			pathname: '/detail',
			query: {
				name:'hehe'
			}
		});
	}
}
